<template>
	<view>
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont icon-xiangzuo1" @tap="backPage"></view>
			<view class="text" :class="scrrol == true ? 'scrrolHeader' : ''"></view>
			<view class="back"></view>
		</view>
		<view class="clear_box"></view>

		<view class="page_content">
			<view class="wrap">
				<view class="content" v-html="info"></view>
			</view>
		</view>



	</view>
</template>

<script>
	export default {
		data() {
			return {
				lang: 'en',
				link: '',
				pupu: false,
				scrrol: false,
				info: '',
				type: '',
			}
		},
		onLoad(options) {
			this.type = options.type || ''
			this.loadData();
		},
		onShow() {
			// let that = this;
			//that.loadData();
		},
		methods: {
			loadData() {
				let that = this;
				that.Net._post('api/index/ruleV', {
					type: that.type
				}, res => {
					if (res.code == 200) {
						that.info = res.data.info

					}
				});
			},
			backPage() {
				uni.navigateBack({});
			},
			gotopage(e) {
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url: url
				});
			},
		},
		onPageScroll: function(Object) {
			//console.log(Object.scrollTop); //实时获取到滚动的值
			if (Object.scrollTop > 28) {
				this.scrrol = true;
				/* #ifdef APP-PLUS */
				/* #endif */
			} else if (Object.scrollTop < 28) {
				this.scrrol = false;
				/* #ifdef APP-PLUS */
				/* #endif */
			}
		},
	}
</script>

<style>
	.header {
		background-color: transparent !important;
	}

	.header .text {
		text-align: center;
	}

	.page_content {
		width: 92%;
		margin: 0 auto;
	}

	.scrrolHeader {
		width: 100%;
		background-color: #1A1A1A !important;

	}

	.wrap {
		width: 100%;
		margin: auto;
	}

	.wrap .title {
		font-size: 5vw;
		font-weight: bold;
		color: #fff;
		line-height: 7vw;
	}

	.add_box {
		background-color: #1A1A1A;
		border-radius: 2vw;
		display: flex;
		justify-content: space-between;
		height: 12vw;
		line-height: 12vw;
		color: #fff;
		margin-top: 2vw;
		font-size: 3.5vw;
		padding: 0vw 3vw;
	}

	.content {
		line-height: 6vw;
		color: #fff;
		font-size: 3.5vw;
		/* margin-top: 5vw; */
	}
</style>